<?php
/**
 * JoiGallery - image gallery component for Joostina
 *
 * Менеджер плагинов
 *
 * @version 1.0 alpha 12
 * @package JoiGallery
 * @subpackage	AdminView
 * @filename plugins_list.php
 * @author JoostinaTeam
 * @copyright (C) 2008-2009 Joostina Team
 * @license see license.txt
 *
 **/
 
defined('_VALID_MOS') or die();

?>

<table class="adminheading">
  <tr>
    <th class="config">
     <?php echo _C_JOIGALLERY_COMPONENT;
           echo _C_JOIGALLERY_PLUGINS;
      ?>
    </th>
  </tr>
</table>

<form action="index2.php" method="post" name="adminForm" id="adminForm">

  <table class="adminlist" width="100%">
    <tr>
    <th width="10" style="text-align: center">#</th>
    <th width="20"><input type="checkbox" name="toggle" value="" onClick="checkAll(<?php echo count( $plugins_list );?>);" /></th>
    <th class="title">Плагин</th>
    <th class="title">Тип</th>
  </tr>

  <?php
  $i = 0;
  foreach($plugins_list as $key=>$p){
  foreach($plugins_list[$key] as $plugin){

  $link = 'index2.php?option='.$option.'&act=plugins&task=plugin&plugin='.$plugin.'&type='.$key;
  $plug_name = '<a href="'.$link.'">'.$plugin.'</a>';

  $row = ($i % 2 == 0)? '0':'1';//Проверяем на чет/нечет
  ?>
  <tr class="<?php echo 'row'.$row; ?>">
    <td align="right"><?php echo $pageNav->rowNumber( $i ); ?></td>
    <td align="center"><?php echo mosHTML::idBox($i, $plugin); ?></td>
    <td><?php echo $plug_name; ?></td>
    <td> <?php echo $key; ?> </td>
  </tr>
  <?php $i++; } ?>
  <?php $i++; } ?>

  </table>
  
  <input type="hidden" name="option" value="<?php echo $option; ?>" />
  <input type="hidden" name="act" value="configuration" />
  <input type="hidden" name="task" value="" />
  <input type="hidden" name="<?php echo josSpoofValue(); ?>" value="1" />
  <input type="hidden" name="boxchecked" value="0" />
</form>